var express = require('express');
var router = express.Router();

import service from '../service/user'

router.post('/login',service.doLog)

router.post('/tokenlogin',service.tokenlogin)

router.post('/regin',service.doReg)

router.post('/writeoff',service.doWriteOff)

router.put('/updateAvatar',service.updateAvatar)

router.put('/updatename',service.updatename)

router.put('/updatePassword',service.updatePassword)

router.get('/selectAllUser',service.selectAllUser)

router.get('/test',(req,res,next)=>{
	console.log('Test-tesT')
	res.send({TESt:"dfqwegfvqwae3"})
})

module.exports = router
